<?php /* Smarty version Smarty-3.1.11, created on 2012-10-08 12:11:52
         compiled from "_templates\creport\index.tpl" */ ?>
<?php /*%%SmartyHeaderCode:73705072a6e8d5ce23-05511867%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '4696f7a2ce18bbc461e5f37bccacba545ddd1c8b' => 
    array (
      0 => '_templates\\creport\\index.tpl',
      1 => 1349677402,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '73705072a6e8d5ce23-05511867',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'new_reports' => 0,
    'new_value' => 0,
    'item' => 0,
    'old_reports' => 0,
    'old_value' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_5072a6e9122ad1_46044131',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5072a6e9122ad1_46044131')) {function content_5072a6e9122ad1_46044131($_smarty_tpl) {?><article class="module width_full">
    <header><h3><?php echo $_smarty_tpl->getConfigVariable('reports');?>
</h3></header>
	<table width="100%" cellpadding="3" cellspacing="1">
		<tbody><tr>
		<td class="header" style="font-weight:bold;"><?php echo $_smarty_tpl->getConfigVariable('new_reports');?>
: <?php echo $_smarty_tpl->tpl_vars['new_reports']->value;?>
</td>
		</tr>
	</tbody></table>
	<table width="100%" cellpadding="3" cellspacing="1">
		<tr>
			<th align="center" class="header"><?php echo $_smarty_tpl->getConfigVariable('username');?>
</th>
			<th align="center" class="header"><?php echo $_smarty_tpl->getConfigVariable('date');?>
</th>
			<th align="center" class="header"><?php echo $_smarty_tpl->getConfigVariable('reason');?>
</th>
			<th align="center" class="header"><?php echo $_smarty_tpl->getConfigVariable('stars');?>
</th>
			<th align="right" class="header"><?php echo $_smarty_tpl->getConfigVariable('action');?>
</th>
		</tr>
                <?php if (!empty($_smarty_tpl->tpl_vars['new_value']->value)){?>
                    <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['new_value']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['item']->_loop = true;
?>
                            
                            <script type="text/javascript">
                                    $(function() {
                                            $(".inv_button_new_<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
").click(function() {
                                                    var id 					= '<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
';
                                                    var dataString	= 'creport='+ id;
                                                    var parent = $(this).parent();
                                            $.ajax({
                                                    type: "POST",
                                                    url: "_javascript/ajax_livedit.php",
                                                    data: dataString,
                                                    cache: false,
                                                    success: function()
                                                            {
                                                                    $("#maininv_new_<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
").fadeOut('slow', function() {$("#maininv_new_<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
").remove();});
                                                            }
                                            });
                                            return false;
                                            });
                                    });
                            </script>
                            
                            <tr id="maininv_new_<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
">
                                    <td align="center" class="body"><a style="font-weight:bold; color:#000000;" href="index.php?mod=profile&userID=<?php echo $_smarty_tpl->tpl_vars['item']->value['userID'];?>
"><?php echo $_smarty_tpl->tpl_vars['item']->value['username'];?>
 (<?php echo $_smarty_tpl->tpl_vars['item']->value['allstars'];?>
 <?php echo $_smarty_tpl->getConfigVariable('stars');?>
)</a></td>
                                    <td align="center" class="body"><?php echo $_smarty_tpl->tpl_vars['item']->value['timestamp'];?>
</td>
                                    <td align="center" class="body"><?php echo $_smarty_tpl->tpl_vars['item']->value['reason'];?>
</td>
                                    <td align="center" class="body"><?php echo $_smarty_tpl->tpl_vars['item']->value['img'];?>
</td>
                                    <td align="right" class="body"><a href="" class="inv_button_new_<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
"><img src="_images/icons/cross.png" alt=""></a></td>
                            </tr>
							<?php if ($_smarty_tpl->tpl_vars['item']->value['allstars']>=5){?>
								<tr>
									<td class="body" colspan="5"><?php echo $_smarty_tpl->getConfigVariable('banish');?>
 - <a href="index.php?mod=banlist&page=add&username=<?php echo $_smarty_tpl->tpl_vars['item']->value['username'];?>
&reason=<?php echo $_smarty_tpl->getConfigVariable('res');?>
"><?php echo $_smarty_tpl->getConfigVariable('banplayer');?>
</a></td>
								</tr>
							<?php }?>
                    <?php } ?>
                <?php }?>
	</table>
		
	<table width="100%" cellpadding="3" cellspacing="1">
		<tbody><tr>
		<td class="header" style="font-weight:bold;"><?php echo $_smarty_tpl->getConfigVariable('old_reports');?>
: <?php echo $_smarty_tpl->tpl_vars['old_reports']->value;?>
</td>
		</tr>
	</tbody></table>
	<table width="100%" cellpadding="3" cellspacing="1">
		<tr>
			<th align="center" class="header"><?php echo $_smarty_tpl->getConfigVariable('username');?>
</th>
			<th align="center" class="header"><?php echo $_smarty_tpl->getConfigVariable('date');?>
</th>
			<th align="center" class="header"><?php echo $_smarty_tpl->getConfigVariable('reason');?>
</th>
			<th align="center" class="header"><?php echo $_smarty_tpl->getConfigVariable('stars');?>
</th>
			<th align="right" class="header"><?php echo $_smarty_tpl->getConfigVariable('action');?>
</th>
		</tr>
                <?php if (!empty($_smarty_tpl->tpl_vars['old_value']->value)){?>
                    <?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['old_value']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
$_smarty_tpl->tpl_vars['item']->_loop = true;
?>
                            
                            <script type="text/javascript">
                                    $(function() {
                                            $(".inv_button_old_<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
").click(function() {
                                                    var id 					= '<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
';
                                                    var dataString	= 'creport='+ id;
                                                    var parent = $(this).parent();
                                            $.ajax({
                                                    type: "POST",
                                                    url: "_javascript/ajax_livedit.php",
                                                    data: dataString,
                                                    cache: false,
                                                    success: function()
                                                            {
                                                                    $("#maininv_old_<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
").fadeOut('slow', function() {$("#maininv_old_<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
").remove();});
                                                            }
                                            });
                                            return false;
                                            });
                                    });
                            </script>
                            
                            <tr id="maininv_old_<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
">
                                    <td align="center" class="body"><a style="font-weight:bold; color:#000000;" href="index.php?mod=profile&userID=<?php echo $_smarty_tpl->tpl_vars['item']->value['userID'];?>
"><?php echo $_smarty_tpl->tpl_vars['item']->value['username'];?>
 (<?php echo $_smarty_tpl->tpl_vars['item']->value['allstars'];?>
 <?php echo $_smarty_tpl->getConfigVariable('stars');?>
)</a></td>
                                    <td align="center" class="body"><?php echo $_smarty_tpl->tpl_vars['item']->value['timestamp'];?>
</td>
                                    <td align="center" class="body"><?php echo $_smarty_tpl->tpl_vars['item']->value['reason'];?>
</td>
                                    <td align="center" class="body"><?php echo $_smarty_tpl->tpl_vars['item']->value['img'];?>
</td>
                                    <td align="right" class="body"><a href="" class="inv_button_old_<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
"><img src="_images/icons/cross.png" alt=""></a></td>
                            </tr>
							<?php if ($_smarty_tpl->tpl_vars['item']->value['allstars']>=5){?>
								<tr>
									<td class="body" colspan="5"><?php echo $_smarty_tpl->getConfigVariable('banish');?>
 - <a href="index.php?mod=banlist&page=add&username=<?php echo $_smarty_tpl->tpl_vars['item']->value['username'];?>
&reason=<?php echo $_smarty_tpl->getConfigVariable('res');?>
"><?php echo $_smarty_tpl->getConfigVariable('banplayer');?>
</a></td>
								</tr>
							<?php }?>
                    <?php } ?>
                <?php }?>
	</table>
	<footer>
		<div class="submit_link">
			<a href="index.php?mod=creport&amp;page=add"><input type="submit" value="<?php echo $_smarty_tpl->getConfigVariable('add_report');?>
" class="alt_btn"></a>
		</div>
	</footer>
</article><?php }} ?>